const scripts = ['<script src="/js/dice.min.js?11"></script>'];

export default function () {
  return {
    name: "add-script",
    transformIndexHtml(html) {
      return html.replace("</body>", scripts.join("\n"));
    },
  };
}
